package com.example.springcloudfeign.feign;

import com.example.springcloudfeign.pojo.StudentPo;
import org.springframework.stereotype.Component;


@Component
public class ServerFeignFallBack implements ServerFeign{
    @Override
    public String service() {
        return null;
    }

    @Override
    public String feginRequestBody(String name, String age) {
        return null;
    }

    @Override
    public String feignWithRestful(String name, Integer age) {
        StudentPo po = new StudentPo();
        po.setId(1);
        po.setName("ServerFeign的降级处理数据" + ":托底数据");
        return "";
    }

    @Override
    public StudentPo feignWithRequestBody(StudentPo studentPo) {
        return null;
    }

    @Override
    public StudentPo feignWithNormalFormDataDemo6(StudentPo studentPo) {
        return null;
    }
}
